import  torch as t
a = t.arange(0,6).view(2,3)
b = t.clamp(a,3)
c = t.clamp(a,2,5)
print("a=",a)
print("b=",b)
print("c=",c)